package homeword.Add_and_sub;

public class Add implements Runnable{

    private Repository repository;

    public Add(Repository repository) {
        this.repository = repository;
    }


    @Override
    public void run() {
        while (true){
            try {
                this.repository.add();
                Thread.yield();
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }

}
